package jnpf.scheduletask.task;

import com.xxl.job.core.handler.annotation.XxlJob;
import jnpf.engine.FlowTaskApi;
import jnpf.engine.model.flowtask.PaginationFlowTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class SynTaskHandler {
    @Autowired
    private FlowTaskApi flowTaskApi;

    @XxlJob("synTaskHandler")
    @Transactional
    public void defaultHandler() throws Exception {
        flowTaskApi.List2(  new PaginationFlowTask()  );
    }
}
